package report.dao.vo.tree;

import report.dao.po.DashboardTreeDO;

import java.util.List;

public class DashboardTreeVO {
    private String name;
    private String id;
    private String pid;
    private List<DashboardTreeVO> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<DashboardTreeVO> getChildren() {
        return children;
    }

    public void setChildren(List<DashboardTreeVO> children) {
        this.children = children;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public static DashboardTreeVO do2vo(DashboardTreeDO datao) {
        if (datao == null) {
            return null;
        }
        DashboardTreeVO treeVO = new DashboardTreeVO();
        treeVO.setId(datao.getId());
        treeVO.setName(datao.getName());
        treeVO.setPid(datao.getPid());
        return treeVO;
    }
}
